package com.kt.uokos.yimo.service;

import com.kt.uokos.yimo.dao.AdminNotice;

import java.util.List;

/**
 * @Description TODO
 * @ClassName AdminNoticeService
 * @Date 2021/12/27 上午11:59
 * @Author KangTao
 */
public interface AdminNoticeService {

   void add(AdminNotice noticeAdmin);

   List<AdminNotice> queryByNoticeId(Integer noticeId);

   List<AdminNotice> querySelective(String title, String type, Integer adminId, Integer page, Integer limit, String sort, String order);

   int countUnread(Integer adminId);

   int countReadByNoticeId(Integer noticeId);

   void updateByNoticeId(AdminNotice adminNotice, Integer noticeId);

   void deleteByNoticeId(Integer id);

   void deleteByNoticeIds(List<Integer> ids);

   AdminNotice find(Integer noticeId, Integer adminId);

   void update(AdminNotice noticeAdmin);

   void markReadByIds(List<Integer> ids, Integer adminId);

   void deleteById(Integer id, Integer adminId);

   void deleteByIds(List<Integer> ids, Integer adminId);
}
